package com.wbf.demo.security;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * 重写token后，可在该类增加自定义成员变量，用于支持手机号-验证码/微信/qq等登陆方式传参
 * @author fal
 */
public class UserNamePassWordRegisterToken extends UsernamePasswordAuthenticationToken {
    private static final long serialVersionUID = 2179298295179351888L;


    public UserNamePassWordRegisterToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials, authorities);
    }


    public UserNamePassWordRegisterToken(Object principal, Object credentials) {
        super(principal, credentials);
    }
}
